#pragma once

#include "../../Forest/TreeNode.h"
class Effect;
 /**
 * Skybox Klasse
 * @author Ruben Rigole
 */
class SkyBox : public TreeNode
{
public:
	SkyBox(const tstring& texture, float size);
	virtual ~SkyBox();

	void Draw();
	void Tick(float dTime);
	void Init(const MeshDesc& mDesc) {}
	const ID3D10ShaderResourceView* GetTexture() const {return NULL;}

private:
	ID3D10Buffer* m_VertexBuffer, *m_IndexBuffer;
	ID3D10InputLayout* m_Layout;

	ID3D10Effect *m_Effect;
	ID3D10EffectTechnique *m_Tech;
	ID3D10EffectMatrixVariable *m_WVP;
	ID3D10EffectShaderResourceVariable *m_TexVar;

	ID3D10ShaderResourceView* m_Tex;

	SkyBox(const SkyBox &t);
	SkyBox& operator= (const SkyBox &t);
};